<html>
<head>
<style>
body{ width:250; height:125; }
</style>
	<script>
	function init() {
		var sleep = System.Gadget.Settings.read("Sleep");
		if (sleep != "")
		{
			for (i=0; i<xInternal.options.length; ++i)
				if (xInternal.options[i].value == sleep)
					xInternal.selectedIndex = i;
		}
	}

	System.Gadget.onSettingsClosing = SettingsClosing;
	function SettingsClosing(event)
	{
 		if (event.closeAction == event.Action.commit) {
			System.Gadget.Settings.write("Sleep", xInternal.options[xInternal.selectedIndex].value);
		}
		
		event.cancel = false;
	}
	
	function openUsrDataDir()
	{
		System.Shell.execute(System.Gadget.path + "\\UserData");
	}
	
	</script>
</head>
<body onload="init()">

<div id="chkLink" style="position:absolute; top:20px; width:300px; height:10px; z-index:1"><p align="left"><font size="2">SlideText V 1.1<br>By Charry Wong</font></p>
</div>
<div id="chkLink" style="position:absolute; top:50px; width:300px; height:10px; z-index:1"><p align="left"><font size="2"><br />Interval:</font>&nbsp;<select id="xInternal">
<option value="2">2 secs</option>
<option value="3">3 secs</option>
<option value="4">4 secs</option>
<option value="5">5 secs</option>
<option value="6">6 secs</option>
<option value="7">7 secs</option>
<option value="8">8 secs</option>
<option value="9">9 secs</option>
<option value="10">10 secs</option>

</select></p>

<a href="Javascript:void(0)" onclick="openUsrDataDir();">Open User Data Dir</a>
</div>


</body>
</html>
